
from .api_user_paid import ApiIndex

from flask import Flask, request, Blueprint

from . import app_user_paid


@app_user_paid.route('/user_paid', methods=['GET', 'PUT'])
    
def user_paid():
    
    methods = request.method

    info = request.args

    page = info.get('page')

    limit = info.get('limit')

    with ApiIndex() as conn_api:

        result_info = conn_api.index(methods, page, limit)

    return result_info
    

    